package com.coocaa.ops.common.core.biz.tab.constant;

import lombok.experimental.UtilityClass;

/**
 * @author bijiahao
 * @description
 * @date 2020/6/16 17:27
 */
@UtilityClass
public class TabTypeConstants {

    /**
     * 普通版面
     */
    public static final String NORMAL = "normal";
    /**
     * 简介在左边
     */
    public static final String INTRODUCTION_LEFT = "introductionLeft";
    /**
     * 简介在底部
     */
    public static final String INTRODUCTION_BOTTOM = "introductionBottom";

    /**
     * 插件版面
     */
    public static final String PLUGIN = "plugin";

    public static final String POSTER = "poster";


    public static boolean isNormal(String tabType) {
        return NORMAL.equals(tabType);
    }

    public static boolean isIntroductionLeft(String tabType) {
        return INTRODUCTION_LEFT.equals(tabType);
    }

    public static boolean isIntroductionBottom(String tabType) {
        return INTRODUCTION_BOTTOM.equals(tabType);
    }

    public static boolean isVideo(String tabType) {
        return isIntroductionLeft(tabType) || isIntroductionBottom(tabType);
    }

    public static boolean isPlugin(String tabType) {
        return PLUGIN.equals(tabType);
    }

    public static boolean isPoster(String tabType) {
        return POSTER.equals(tabType);
    }
}
